package com.itheima.static_case.Demo6;

public class Test {
    public static void main(String[] args) {
        // 测试继承
        Cat cat = new Cat();
        cat.setName("猫咪");
        cat.setColor("白色");
        cat.print();

        Dog dog = new Dog();
        dog.setName("狗狗");
        dog.setColor("黑色");
        dog.print();
    }
}
